package com.movitech.mobile.cz.base.modules.activiti.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.movitech.mobile.cz.base.modules.activiti.dao.AProcessNodeDefinitionConfigMapper;
import com.movitech.mobile.cz.base.modules.activiti.entity.AProcessNodeDefinitionConfig;
import com.movitech.mobile.cz.base.modules.activiti.entity.AProcessNodeDefinitionConfigExample;

@Service
public class AProcessNodeDefinitionConfigService {
    protected Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private AProcessNodeDefinitionConfigMapper aProcessNodeDefinitionConfigMapper;
	
	/***
	 * 根据Activiti流程配置对象id，获取Activiti流程节点配置列表
	 * @param processDefinitionConfigId
	 * @return
	 */
	public List<AProcessNodeDefinitionConfig> getAProcessNodeDefinitionConfigByProcessDefinitionConfigId(String processDefinitionConfigId) {
		AProcessNodeDefinitionConfigExample filter = new AProcessNodeDefinitionConfigExample();
		filter.createCriteria().andProcessDefinitionConfigIdEqualTo(processDefinitionConfigId);
		return aProcessNodeDefinitionConfigMapper.selectByExample(filter);
	}
	
}